﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.iOS.ADBannerView
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;
using System.ComponentModel;

#nullable disable
namespace UnityEngine.iOS
{
  /// <summary>
  ///   <para>ADBannerView is a wrapper around the ADBannerView class found in the Apple iAd framework and is only available on iOS.</para>
  /// </summary>
  [EditorBrowsable(EditorBrowsableState.Never)]
  [Obsolete("iOS.ADBannerView class is obsolete, Apple iAD service discontinued", true)]
  public sealed class ADBannerView
  {
    public static bool IsAvailable(ADBannerView.Type type) => false;

    public ADBannerView(ADBannerView.Type type, ADBannerView.Layout layout)
    {
    }

    /// <summary>
    ///   <para>Checks if banner contents are loaded.</para>
    /// </summary>
    public bool loaded => false;

    /// <summary>
    ///   <para>Banner visibility. Initially banner is not visible.</para>
    /// </summary>
    public bool visible
    {
      get => false;
      set
      {
      }
    }

    /// <summary>
    ///   <para>Banner layout.</para>
    /// </summary>
    public ADBannerView.Layout layout
    {
      get => ADBannerView.Layout.Top;
      set
      {
      }
    }

    /// <summary>
    ///   <para>The position of the banner view.</para>
    /// </summary>
    public Vector2 position
    {
      get => new Vector2();
      set
      {
      }
    }

    /// <summary>
    ///   <para>The size of the banner view.</para>
    /// </summary>
    public Vector2 size => new Vector2();

    public static event ADBannerView.BannerWasClickedDelegate onBannerWasClicked
    {
      add
      {
      }
      remove
      {
      }
    }

    public static event ADBannerView.BannerWasLoadedDelegate onBannerWasLoaded
    {
      add
      {
      }
      remove
      {
      }
    }

    public static event ADBannerView.BannerFailedToLoadDelegate onBannerFailedToLoad
    {
      add
      {
      }
      remove
      {
      }
    }

    /// <summary>
    ///   <para>Specifies how banner should be layed out on screen.</para>
    /// </summary>
    public enum Layout
    {
      /// <summary>
      ///   <para>Completely manual positioning.</para>
      /// </summary>
      Manual = -1, // 0xFFFFFFFF
      /// <summary>
      ///   <para>Traditional Banner: align to screen top.</para>
      /// </summary>
      Top = 0,
      /// <summary>
      ///   <para>Rect Banner: place in top-left corner.</para>
      /// </summary>
      TopLeft = 0,
      /// <summary>
      ///   <para>Traditional Banner: align to screen bottom.</para>
      /// </summary>
      Bottom = 1,
      /// <summary>
      ///   <para>Rect Banner: place in bottom-left corner.</para>
      /// </summary>
      BottomLeft = 1,
      /// <summary>
      ///   <para>Rect Banner: align to screen left, placing at the center.</para>
      /// </summary>
      CenterLeft = 2,
      /// <summary>
      ///   <para>Rect Banner: place in top-right corner.</para>
      /// </summary>
      TopRight = 4,
      /// <summary>
      ///   <para>Rect Banner: place in bottom-right corner.</para>
      /// </summary>
      BottomRight = 5,
      /// <summary>
      ///   <para>Rect Banner: align to screen right, placing at the center.</para>
      /// </summary>
      CenterRight = 6,
      /// <summary>
      ///   <para>Rect Banner: align to screen top, placing at the center.</para>
      /// </summary>
      TopCenter = 8,
      /// <summary>
      ///   <para>Rect Banner: align to screen bottom, placing at the center.</para>
      /// </summary>
      BottomCenter = 9,
      /// <summary>
      ///   <para>Rect Banner: place exactly at screen center.</para>
      /// </summary>
      Center = 10, // 0x0000000A
    }

    /// <summary>
    ///   <para>The type of the banner view.</para>
    /// </summary>
    public enum Type
    {
      /// <summary>
      ///   <para>Traditional Banner (it takes full screen width).</para>
      /// </summary>
      Banner,
      /// <summary>
      ///   <para>Rect Banner (300x250).</para>
      /// </summary>
      MediumRect,
    }

    /// <summary>
    ///   <para>Will be fired when banner was clicked.</para>
    /// </summary>
    public delegate void BannerWasClickedDelegate();

    /// <summary>
    ///   <para>Will be fired when banner loaded new ad.</para>
    /// </summary>
    public delegate void BannerWasLoadedDelegate();

    /// <summary>
    ///   <para>Will be fired when banner ad failed to load.</para>
    /// </summary>
    public delegate void BannerFailedToLoadDelegate();
  }
}
